package com.kongmou.springReview.commonCfg.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestAop {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
		DemoActionService actionS = context.getBean(DemoActionService.class);
		DemoMethodService methodS = context.getBean(DemoMethodService.class);

		actionS.add();
		methodS.add();
		context.close();
	}
}
